using UnityEditor;
using UnityEngine;

namespace FShaderInspector
{
    public static class LayoutHelper
    {
        /// <summary> 开始缩进 </summary>
        /// <param name="indent"> 缩进值 </param>
        public static void BeginIndent(int indent = 5)
        {
            GUILayout.BeginHorizontal();
            GUILayout.Space(indent);
            EditorGUILayout.BeginVertical();
        }

        /// <summary> 结束缩进 </summary>
        public static void EndIndent()
        {
            EditorGUILayout.EndVertical();
            GUILayout.EndHorizontal();
        }
    }
}